import mockjs from 'mockjs';
import { delay } from 'roadhog-api-doc';
import defaultSettings from '@/defaultSettings';

const proxy = {
  'POST /oc/RuleCfgController/showRuleTree.do': (req, res) => {
    res.send({
      rule_tree: [
        {
          id: '0',
          name: '规则管理',
          type: 'root',
          isLeaf: false,
          children: [
            {
              id: '101',
              pid: '0',
              name: '流程匹配',
              type: 'directory',
              isLeaf: false,
              children: [
                {
                  id: '1001',
                  pid: '101',
                  name: 'BSS订单流程',
                  type: 'plan',
                  isLeaf: false,
                  children: [
                    {
                      icon: 'hu',
                      id: '2910',
                      name: '集中预约流程(自动)',
                      pid: '1001',
                      planId: '1001',
                      statucCd: '00A',
                      type: 'rule',
                      isLeaf: true,
                    },
                    {
                      icon: 'yi',
                      id: '22903',
                      name: '挂起调度流程(自动)',
                      pid: '1001',
                      planId: '1001',
                      statucCd: '00A',
                      type: 'rule',
                      isLeaf: true,
                    },
                    {
                      icon: 'bing',
                      id: '22902',
                      name: '超时调度流程(自动)',
                      pid: '1001',
                      planId: '1001',
                      statucCd: '00A',
                      type: 'rule',
                      isLeaf: true,
                    },
                  ],
                },
              ],
            },
            {
              id: '102',
              pid: '0',
              name: 'OC子订单(非研发人员勿动)',
              type: 'directory',
              isLeaf: false,
              children: [
                {
                  id: '1002',
                  pid: '102',
                  name: '子订单流程启动（主订单）',
                  type: 'plan',
                  isLeaf: false,
                  children: [
                    {
                      icon: 'bing',
                      id: '1906191432001',
                      name: '主单拆单方案(自动)',
                      pid: '1002',
                      planId: '1906191432001',
                      statucCd: '00A',
                      type: 'rule',
                      isLeaf: true,
                    },
                    {
                      icon: 'hu',
                      id: '1906041751007',
                      name: '流程结束(手动)',
                      pid: '1002',
                      planId: '1906041751007',
                      statucCd: '00A',
                      type: 'rule',
                      isLeaf: true,
                    },
                  ],
                },
              ],
            },
          ],
        },
      ],
    });
  },
  'POST /oc/RuleCfgController/showPlanCond.do': (req, res) => {
    res.send({
      tache_list: [
        {
          traceId: '174',
          traceCode: 'IN',
          traceName: '订单归集',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '1908151421001',
          traceCode: 'OP',
          traceName: '订单审批',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '1909241045002',
          traceCode: 'OC',
          traceName: '订单撤消',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005001',
          traceCode: 'DDDSC',
          traceName: '调度单生成',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005002',
          traceCode: 'KHYY',
          traceName: '客户预约',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005003',
          traceCode: 'PSGD',
          traceName: '派施工单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005004',
          traceCode: 'QYGLYSH',
          traceName: '区域管理员审核',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005005',
          traceCode: 'JJYYZC',
          traceName: '集中预约仲裁',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005006',
          traceCode: 'DDFQRSH',
          traceName: '订单发起人审核',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004141005007',
          traceCode: 'JGSJ',
          traceName: '结果收集',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004201545002',
          traceCode: 'JSRWD',
          traceName: '接收任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004201545003',
          traceCode: 'WHRWD',
          traceName: '维护任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004201545004',
          traceCode: 'KHGT',
          traceName: '客户沟通',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004201545005',
          traceCode: 'KHGTSH',
          traceName: '客户沟通审核',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004241545006',
          traceCode: 'CSRWD',
          traceName: '超时任务单  ',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004241545007',
          traceCode: 'GQRWD',
          traceName: '挂起任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004241545008',
          traceCode: 'CLRWD',
          traceName: '处理任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2004241545009',
          traceCode: 'DDCL',
          traceName: '等待处理',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2005221445001',
          traceCode: 'DDRYCLRWD',
          traceName: '订单人员处理任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '2005221445002',
          traceCode: 'KHJLCLRWD',
          traceName: '客户经理处理任务单',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '207',
          traceCode: 'BH',
          traceName: '订单开通',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '208',
          traceCode: 'OD',
          traceName: '订单发货',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '210',
          traceCode: 'OF',
          traceName: '订单竣工',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '211',
          traceCode: 'OA',
          traceName: '业务受理',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '215',
          traceCode: 'OE',
          traceName: '订单补录',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '220',
          traceCode: 'WA',
          traceName: '退单申请',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '221',
          traceCode: 'WFA',
          traceName: '退款审核',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
        {
          traceId: '222',
          traceCode: 'WF',
          traceName: '退款',
          actionUrl: 'OC-OrderProcess',
          busiType: '80003',
        },
      ],
      busiTypeList: [
        {
          attrValueId: '100000000004',
          attrId: '1000000002',
          attrValue: '1',
          attrValueName: '销售单',
          attrValueDesc: '销售单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '100000000005',
          attrId: '1000000002',
          attrValue: '2',
          attrValueName: '商机单',
          attrValueDesc: '商机单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 2,
          paramCode: [],
        },
        {
          attrValueId: '100000000006',
          attrId: '1000000002',
          attrValue: '3',
          attrValueName: '预接入单',
          attrValueDesc: '预接入单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 3,
          paramCode: [],
        },
        {
          attrValueId: '100000000106',
          attrId: '1000000002',
          attrValue: '4',
          attrValueName: '其他',
          attrValueDesc: '其他',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 6,
          paramCode: [],
        },
        {
          attrValueId: '100000000108',
          attrId: '1000000002',
          attrValue: '4',
          attrValueName: '退单',
          attrValueDesc: '退单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 10,
          paramCode: [],
        },
        {
          attrValueId: '2004140950001',
          attrId: '1000000002',
          attrValue: '11',
          attrValueName: '集中预约单',
          attrValueDesc: '集中预约单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 11,
          paramCode: [],
        },
        {
          attrValueId: '2004200950012',
          attrId: '1000000002',
          attrValue: '12',
          attrValueName: '电子协议超时调度单',
          attrValueDesc: '电子协议超时调度单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 12,
          paramCode: [],
        },
        {
          attrValueId: '2004200950013',
          attrId: '1000000002',
          attrValue: '13',
          attrValueName: '订单全流程',
          attrValueDesc: '订单全流程',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 13,
          paramCode: [],
        },
        {
          attrValueId: '2004200950014',
          attrId: '1000000002',
          attrValue: '14',
          attrValueName: '一网通和三线质态监控调度单',
          attrValueDesc: '一网通和三线质态监控调度单',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 14,
          paramCode: [],
        },
        {
          attrValueId: '2004200950015',
          attrId: '1000000002',
          attrValue: '15',
          attrValueName: '超时调度',
          attrValueDesc: '超时调度',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 15,
          paramCode: [],
        },
        {
          attrValueId: '2004200950016',
          attrId: '1000000002',
          attrValue: '16',
          attrValueName: '挂起调度',
          attrValueDesc: '挂起调度',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 16,
          paramCode: [],
        },
        {
          attrValueId: '2004200950017',
          attrId: '1000000002',
          attrValue: '17',
          attrValueName: '驳回调度',
          attrValueDesc: '驳回调度',
          parentAttrValueId: null,
          attrCode: 'ORDER_TYPE',
          sortBy: 17,
          paramCode: [],
        },
      ],
      plan: {
        planId: '1027',
        planCode: null,
        planName: '订单失败',
        execTime: null,
        execCycle: null,
        cycleId: null,
        createDate: null,
        createUser: null,
        statusDate: null,
        statusUser: null,
        statusCd: '00A',
        financialType: null,
        planType: null,
        yearType: null,
        ctrlType: null,
        ctrlVal: null,
        runType: null,
        serviceType: null,
        effDate: null,
        expDate: null,
        payUserId: null,
        catalogueId: '1003',
        col3: null,
        col2: null,
        col1: null,
        finishStatus: null,
        successRate: null,
        threadNum: null,
        col4: null,
        col5: null,
      },
    });
  },
  'POST /oc/RuleCfgController/showRuleCond.do': (req, res) => {
    res.send({
      final_cond_list: [
        [
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200414180752',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '集中预约流程[OCFLOW20200414180752](1.11(Activated))',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200420092553',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: 'OCFLOW20200420092609',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '订单全流程[OCFLOW20200420092609](1.9(Activated))',
            left_brackets: '',
          },
        ],
        [
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: '1',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '销售单',
            left_brackets: '',
          },
          {
            pre_log: '',
            opt_type: '',
            right_brackets: '',
            attrValue: '2',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '商机单',
            left_brackets: '',
          },
        ],
      ],
      rule_cond_combobox: [
        {
          attrValueId: '400000000020',
          attrId: '4000000010',
          attrValue: '!=',
          attrValueName: '不等于',
          attrValueDesc: '不等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000021',
          attrId: '4000000010',
          attrValue: '<',
          attrValueName: '小于',
          attrValueDesc: '小于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000028',
          attrId: '4000000010',
          attrValue: 'not matches',
          attrValueName: '不匹配',
          attrValueDesc: '不匹配',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 1,
          paramCode: [],
        },
        {
          attrValueId: '400000000022',
          attrId: '4000000010',
          attrValue: '<=',
          attrValueName: '小于等于',
          attrValueDesc: '小于等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 2,
          paramCode: [],
        },
        {
          attrValueId: '400000000023',
          attrId: '4000000010',
          attrValue: '==',
          attrValueName: '等于',
          attrValueDesc: '等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 3,
          paramCode: [],
        },
        {
          attrValueId: '400000000024',
          attrId: '4000000010',
          attrValue: '>',
          attrValueName: '大于',
          attrValueDesc: '大于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 4,
          paramCode: [],
        },
        {
          attrValueId: '400000000025',
          attrId: '4000000010',
          attrValue: '>=',
          attrValueName: '大于等于',
          attrValueDesc: '大于等于',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 5,
          paramCode: [],
        },
        {
          attrValueId: '400000000026',
          attrId: '4000000010',
          attrValue: 'matches',
          attrValueName: '匹配',
          attrValueDesc: '匹配',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 6,
          paramCode: [],
        },
        {
          attrValueId: '400000000027',
          attrId: '4000000010',
          attrValue: 'in',
          attrValueName: '存在',
          attrValueDesc: '存在',
          parentAttrValueId: null,
          attrCode: 'RULE_COND_COMBOBOX',
          sortBy: 7,
          paramCode: [],
        },
      ],
      cal_cond_list: [
        [
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200414180752',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '集中预约流程[OCFLOW20200414180752](1.11(Activated))',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200420092553',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '!=',
            right_brackets: ')',
            attrValue: 'OCFLOW20200420092609',
            attr: {
              attrId: '2',
              objId: '1',
              attrCode: 'flow_id',
              attrName: '流程',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'FLOW_ID',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '订单全流程[OCFLOW20200420092609](1.9(Activated))',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '1',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '销售单',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '2',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '商机单',
            left_brackets: '(',
          },
          {
            pre_log: '||',
            opt_type: '<',
            right_brackets: ')',
            attrValue: '3',
            attr: {
              attrId: '4',
              objId: '1',
              attrCode: 'order_type',
              attrName: '子订单类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '预接入单',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: null,
            opt_type: 'not matches',
            right_brackets: null,
            attrValue: '2',
            attr: {
              attrId: '5',
              objId: '1',
              attrCode: 'order_busi_type',
              attrName: '子订单业务类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_BUSI_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '变更',
            left_brackets: '(',
          },
          {
            pre_log: null,
            opt_type: 'not matches',
            right_brackets: null,
            attrValue: '3',
            attr: {
              attrId: '5',
              objId: '1',
              attrCode: 'order_busi_type',
              attrName: '子订单业务类型',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_BUSI_TYPE',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '注销',
            left_brackets: '(',
          },
        ],
        [
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1110',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '调度单生成中',
            left_brackets: null,
          },
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1130',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '派施工单中',
            left_brackets: null,
          },
          {
            pre_log: null,
            opt_type: '>',
            right_brackets: null,
            attrValue: '1131',
            attr: {
              attrId: '6',
              objId: '1',
              attrCode: 'order_status',
              attrName: '子订单状态',
              attrType: 'fact',
              statusCd: null,
              createDate: null,
              createUser: null,
              statusDate: null,
              statusUser: null,
              remark: null,
              eleType: 'checkbox',
              stypeCode: 'ORDER_STATUS',
              ruleId: null,
              objCode: 'workFlowFact',
              objName: '流程匹配',
            },
            attrValueName: '派施工单完成',
            left_brackets: null,
          },
        ],
      ],
    });
  },
  'POST /oc/RuleCfgController/showCondTree.do': (req, res) => {
    res.send({
      "tree_list": [{
        "data": null,
        "children": [{
          "data": {
            "objId": "1",
            "clazz": "com.ztesoft.bss.oc.core.rule.fact.WorkflowRuleFact",
            "objName": "流程匹配",
            "objType": "fact",
            "extPack": null,
            "statusCd": "00A",
            "createDate": null,
            "createUser": null,
            "statusDate": null,
            "statusUser": null,
            "remark": "流程匹配",
            "objCode": "workFlowFact",
            "className": "WorkFlowFact",
            "neverRunFlag": null,
            "objAttrList": [{
              "attrId": "2",
              "objId": "1",
              "attrCode": "flow_id",
              "attrName": "流程",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "FLOW_ID",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "4",
              "objId": "1",
              "attrCode": "order_type",
              "attrName": "子订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "5",
              "objId": "1",
              "attrCode": "order_busi_type",
              "attrName": "子订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "6",
              "objId": "1",
              "attrCode": "order_status",
              "attrName": "子订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "7",
              "objId": "1",
              "attrCode": "main_ord_type",
              "attrName": "主订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "8",
              "objId": "1",
              "attrCode": "main_ord_busi_type",
              "attrName": "主订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "9",
              "objId": "1",
              "attrCode": "main_ord_status",
              "attrName": "主订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "1905301236001",
              "objId": "1",
              "attrCode": "cust_level",
              "attrName": "客户等级",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "CUST_LEVEL",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "1905301236002",
              "objId": "1",
              "attrCode": "order_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "1905301236003",
              "objId": "1",
              "attrCode": "service_offer",
              "attrName": "服务",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "SERVICE_OFFER",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "27",
              "objId": "1",
              "attrCode": "offer_type",
              "attrName": "销售品类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "OFFER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }, {
              "attrId": "1909301030001",
              "objId": "1",
              "attrCode": "oper_type",
              "attrName": "操作类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "OPER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            }]
          },
          "children": [{
            "data": {
              "attrId": "2",
              "objId": "1",
              "attrCode": "flow_id",
              "attrName": "流程",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "FLOW_ID",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "流程",
            "id": "2",
            "type": "attr"
          }, {
            "data": {
              "attrId": "4",
              "objId": "1",
              "attrCode": "order_type",
              "attrName": "子订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "子订单类型",
            "id": "4",
            "type": "attr"
          }, {
            "data": {
              "attrId": "5",
              "objId": "1",
              "attrCode": "order_busi_type",
              "attrName": "子订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "子订单业务类型",
            "id": "5",
            "type": "attr"
          }, {
            "data": {
              "attrId": "6",
              "objId": "1",
              "attrCode": "order_status",
              "attrName": "子订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "子订单状态",
            "id": "6",
            "type": "attr"
          }, {
            "data": {
              "attrId": "7",
              "objId": "1",
              "attrCode": "main_ord_type",
              "attrName": "主订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "主订单类型",
            "id": "7",
            "type": "attr"
          }, {
            "data": {
              "attrId": "8",
              "objId": "1",
              "attrCode": "main_ord_busi_type",
              "attrName": "主订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "主订单业务类型",
            "id": "8",
            "type": "attr"
          }, {
            "data": {
              "attrId": "9",
              "objId": "1",
              "attrCode": "main_ord_status",
              "attrName": "主订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "主订单状态",
            "id": "9",
            "type": "attr"
          }, {
            "data": {
              "attrId": "1905301236001",
              "objId": "1",
              "attrCode": "cust_level",
              "attrName": "客户等级",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "CUST_LEVEL",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "客户等级",
            "id": "1905301236001",
            "type": "attr"
          }, {
            "data": {
              "attrId": "1905301236002",
              "objId": "1",
              "attrCode": "order_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "订单来源",
            "id": "1905301236002",
            "type": "attr"
          }, {
            "data": {
              "attrId": "1905301236003",
              "objId": "1",
              "attrCode": "service_offer",
              "attrName": "服务",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "SERVICE_OFFER",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "服务",
            "id": "1905301236003",
            "type": "attr"
          }, {
            "data": {
              "attrId": "27",
              "objId": "1",
              "attrCode": "offer_type",
              "attrName": "销售品类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "OFFER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "销售品类型",
            "id": "27",
            "type": "attr"
          }, {
            "data": {
              "attrId": "1909301030001",
              "objId": "1",
              "attrCode": "oper_type",
              "attrName": "操作类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "OPER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "流程匹配"
            },
            "name": "操作类型",
            "id": "1909301030001",
            "type": "attr"
          }],
          "name": "流程匹配",
          "id": "1",
          "type": "obj",
          "nocheck": true,
          "open": true
        }, {
          "data": {
            "objId": "2",
            "clazz": "com.ztesoft.bss.oc.core.rule.fact.TacheRuleFact",
            "objName": "业务匹配",
            "objType": "fact",
            "extPack": null,
            "statusCd": "00A",
            "createDate": null,
            "createUser": null,
            "statusDate": null,
            "statusUser": null,
            "remark": "流程匹配",
            "objCode": "tacheFact",
            "className": "TacheFact",
            "neverRunFlag": null,
            "objAttrList": [{
              "attrId": "10",
              "objId": "2",
              "attrCode": "order_type",
              "attrName": "子订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "11",
              "objId": "2",
              "attrCode": "order_busi_type",
              "attrName": "子订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "12",
              "objId": "2",
              "attrCode": "order_status",
              "attrName": "子订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "13",
              "objId": "2",
              "attrCode": "main_ord_type",
              "attrName": "主订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "14",
              "objId": "2",
              "attrCode": "main_ord_busi_type",
              "attrName": "主订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "15",
              "objId": "2",
              "attrCode": "main_ord_status",
              "attrName": "主订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }, {
              "attrId": "16",
              "objId": "2",
              "attrCode": "is_crm_finish",
              "attrName": "受理系统是否竣工完成",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "IS_CRM_FINISH",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            }]
          },
          "children": [{
            "data": {
              "attrId": "10",
              "objId": "2",
              "attrCode": "order_type",
              "attrName": "子订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "子订单类型",
            "id": "10",
            "type": "attr"
          }, {
            "data": {
              "attrId": "11",
              "objId": "2",
              "attrCode": "order_busi_type",
              "attrName": "子订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "子订单业务类型",
            "id": "11",
            "type": "attr"
          }, {
            "data": {
              "attrId": "12",
              "objId": "2",
              "attrCode": "order_status",
              "attrName": "子订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "子订单状态",
            "id": "12",
            "type": "attr"
          }, {
            "data": {
              "attrId": "13",
              "objId": "2",
              "attrCode": "main_ord_type",
              "attrName": "主订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "主订单类型",
            "id": "13",
            "type": "attr"
          }, {
            "data": {
              "attrId": "14",
              "objId": "2",
              "attrCode": "main_ord_busi_type",
              "attrName": "主订单业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "主订单业务类型",
            "id": "14",
            "type": "attr"
          }, {
            "data": {
              "attrId": "15",
              "objId": "2",
              "attrCode": "main_ord_status",
              "attrName": "主订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "主订单状态",
            "id": "15",
            "type": "attr"
          }, {
            "data": {
              "attrId": "16",
              "objId": "2",
              "attrCode": "is_crm_finish",
              "attrName": "受理系统是否竣工完成",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "IS_CRM_FINISH",
              "ruleId": null,
              "objCode": "tacheFact",
              "objName": "业务匹配"
            },
            "name": "受理系统是否竣工完成",
            "id": "16",
            "type": "attr"
          }],
          "name": "业务匹配",
          "id": "2",
          "type": "obj",
          "nocheck": true,
          "open": true
        }, {
          "data": {
            "objId": "3",
            "clazz": "com.ztesoft.bss.oc.core.rule.fact.OrderDispatchRuleFact",
            "objName": "派单规则匹配",
            "objType": "fact",
            "extPack": null,
            "statusCd": "00A",
            "createDate": null,
            "createUser": null,
            "statusDate": null,
            "statusUser": null,
            "remark": "派单规则匹配",
            "objCode": "dispatchRuleFact",
            "className": "DispatchRuleFact",
            "neverRunFlag": null,
            "objAttrList": [{
              "attrId": "20",
              "objId": "3",
              "attrCode": "city_id",
              "attrName": "地市",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "DC_CITY_CODE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "21",
              "objId": "3",
              "attrCode": "area_id",
              "attrName": "区县",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "DC_AREA_CODE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "22",
              "objId": "3",
              "attrCode": "order_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "23",
              "objId": "3",
              "attrCode": "tache_code",
              "attrName": "订单环节",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TACHE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "24",
              "objId": "3",
              "attrCode": "busi_type",
              "attrName": "业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "25",
              "objId": "3",
              "attrCode": "order_status",
              "attrName": "订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS_IN_TACHE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }, {
              "attrId": "26",
              "objId": "3",
              "attrCode": "staff_pool",
              "attrName": "工号池",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "STAFF_POOL",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            }]
          },
          "children": [{
            "data": {
              "attrId": "20",
              "objId": "3",
              "attrCode": "city_id",
              "attrName": "地市",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "DC_CITY_CODE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "地市",
            "id": "20",
            "type": "attr"
          }, {
            "data": {
              "attrId": "21",
              "objId": "3",
              "attrCode": "area_id",
              "attrName": "区县",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "DC_AREA_CODE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "区县",
            "id": "21",
            "type": "attr"
          }, {
            "data": {
              "attrId": "22",
              "objId": "3",
              "attrCode": "order_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "订单来源",
            "id": "22",
            "type": "attr"
          }, {
            "data": {
              "attrId": "23",
              "objId": "3",
              "attrCode": "tache_code",
              "attrName": "订单环节",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TACHE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "订单环节",
            "id": "23",
            "type": "attr"
          }, {
            "data": {
              "attrId": "24",
              "objId": "3",
              "attrCode": "busi_type",
              "attrName": "业务类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_BUSI_TYPE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "业务类型",
            "id": "24",
            "type": "attr"
          }, {
            "data": {
              "attrId": "25",
              "objId": "3",
              "attrCode": "order_status",
              "attrName": "订单状态",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_STATUS_IN_TACHE",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "订单状态",
            "id": "25",
            "type": "attr"
          }, {
            "data": {
              "attrId": "26",
              "objId": "3",
              "attrCode": "staff_pool",
              "attrName": "工号池",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "STAFF_POOL",
              "ruleId": null,
              "objCode": "dispatchRuleFact",
              "objName": "派单规则匹配"
            },
            "name": "工号池",
            "id": "26",
            "type": "attr"
          }],
          "name": "派单规则匹配",
          "id": "3",
          "type": "obj",
          "nocheck": true,
          "open": true
        }, {
          "data": {
            "objId": "1906111007001",
            "clazz": "com.ztesoft.bss.oc.core.rule.fact.WorkflowRuleFact",
            "objName": "主流程匹配",
            "objType": "fact",
            "extPack": null,
            "statusCd": "00A",
            "createDate": null,
            "createUser": null,
            "statusDate": null,
            "statusUser": null,
            "remark": "主流程匹配",
            "objCode": "workFlowFact",
            "className": "WorkFlowFact",
            "neverRunFlag": null,
            "objAttrList": [{
              "attrId": "1906111039001",
              "objId": "1906111007001",
              "attrCode": "main_ord_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "主流程匹配"
            }, {
              "attrId": "1906111039002",
              "objId": "1906111007001",
              "attrCode": "main_ord_type",
              "attrName": "订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "主流程匹配"
            }]
          },
          "children": [{
            "data": {
              "attrId": "1906111039001",
              "objId": "1906111007001",
              "attrCode": "main_ord_from",
              "attrName": "订单来源",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_FROM",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "主流程匹配"
            },
            "name": "订单来源",
            "id": "1906111039001",
            "type": "attr"
          }, {
            "data": {
              "attrId": "1906111039002",
              "objId": "1906111007001",
              "attrCode": "main_ord_type",
              "attrName": "订单类型",
              "attrType": "fact",
              "statusCd": null,
              "createDate": null,
              "createUser": null,
              "statusDate": null,
              "statusUser": null,
              "remark": null,
              "eleType": "checkbox",
              "stypeCode": "ORDER_TYPE",
              "ruleId": null,
              "objCode": "workFlowFact",
              "objName": "主流程匹配"
            },
            "name": "订单类型",
            "id": "1906111039002",
            "type": "attr"
          }],
          "name": "主流程匹配",
          "id": "1906111007001",
          "type": "obj",
          "nocheck": true,
          "open": true
        }],
        "name": "条件管理",
        "id": "-1",
        "type": "root",
        "nocheck": true,
        "open": true
      }]
    })
  },
  'POST /oc/StaticDataController/getStaticAttr.do': (req, res) => {
    res.send(
      [{
        "attrValueId": "OCFLOW20200414180752",
        "attrId": "OCFLOW20200414180752",
        "attrValue": "OCFLOW20200414180752",
        "attrValueName": "集中预约流程[OCFLOW20200414180752](1.11(Activated))",
        "attrValueDesc": "集中预约流程[OCFLOW20200414180752](1.11(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200420092553",
        "attrId": "OCFLOW20200420092553",
        "attrValue": "OCFLOW20200420092553",
        "attrValueName": "电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))",
        "attrValueDesc": "电子协议超时调度流程[OCFLOW20200420092553](1.6(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200420092609",
        "attrId": "OCFLOW20200420092609",
        "attrValue": "OCFLOW20200420092609",
        "attrValueName": "订单全流程[OCFLOW20200420092609](1.9(Activated))",
        "attrValueDesc": "订单全流程[OCFLOW20200420092609](1.9(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200420092621",
        "attrId": "OCFLOW20200420092621",
        "attrValue": "OCFLOW20200420092621",
        "attrValueName": "一网通和三线质态监控调度流程[OCFLOW20200420092621](1.9(Activated))",
        "attrValueDesc": "一网通和三线质态监控调度流程[OCFLOW20200420092621](1.9(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200424135609",
        "attrId": "OCFLOW20200424135609",
        "attrValue": "OCFLOW20200424135609",
        "attrValueName": "超时调度流程[OCFLOW20200424135609](1.6(Activated))",
        "attrValueDesc": "超时调度流程[OCFLOW20200424135609](1.6(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200424135623",
        "attrId": "OCFLOW20200424135623",
        "attrValue": "OCFLOW20200424135623",
        "attrValueName": "挂起调度[OCFLOW20200424135623](1.8(Activated))",
        "attrValueDesc": "挂起调度[OCFLOW20200424135623](1.8(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }, {
        "attrValueId": "OCFLOW20200424135636",
        "attrId": "OCFLOW20200424135636",
        "attrValue": "OCFLOW20200424135636",
        "attrValueName": "驳回调度[OCFLOW20200424135636](1.3(Activated))",
        "attrValueDesc": "驳回调度[OCFLOW20200424135636](1.3(Activated))",
        "parentAttrValueId": null,
        "attrCode": "",
        "sortBy": 0,
        "paramCode": []
      }]
    )
  },
  'POST /oc/RuleCfgController/findRuleRelList.do': (req, res) => {
    res.send(
      [{
        "ruleId": "2902",
        "ruleCode": "2902",
        "ruleName": "下一步",
        "resourceType": null,
        "implType": null,
        "ruleScript": null,
        "expDate": "2099-12-31 00:00:00.0",
        "effDate": "2020-03-05 00:00:00.0",
        "ruleDesc": null,
        "createDate": "2020-03-05 21:47:41.0",
        "createUser": null,
        "statusDate": null,
        "statusUser": null,
        "statusCd": "00A",
        "pid": "1004",
        "assId": "1",
        "assName": "下一步",
        "assCode": null,
        "exePath": "nextStepAssembly",
        "assType": null,
        "planId": "1004",
        "ruleRel": null,
        "childrenList": null,
        "objRuleExeLogList": null,
        "level": 0,
        "autoExe": "0",
        "relType": "0",
        "priority": "1",
        "relyonRuleId": null,
        "ruleRelId": "2902",
        "autoExeName": "自动",
        "relTypeName": "并行",
        "id": "2902"
      }]
    )
  }
};

export default delay(proxy, defaultSettings.delay);
